Differential current sensing scheme for magnetic random access memory

ABSTRACT

A circuit includes a cell segment, first and second reference cells, and a current sense amplifier. The first and second reference cells are configured to store opposite logic values, respectively. The current sense amplifier is configured with a first node and a second node for currents therethrough to be compared with each other. The current sense amplifier includes a multiplexer configured to couple the first reference cell or the second reference cell to the first node of the current sense amplifier, and couple the second reference cell or the first reference cell to the second node of the current sense amplifier in a first mode, and couple a cell of the cell segment to the first node of the current sense amplifier, and couple the first and second reference cells to the second node of the current sense amplifier in a second mode.

PRIORITY CLAIM AND CROSS-REFERENCE

This application is a continuation application of U.S. application Ser. No. 13/948,432 filed on Jul. 23, 2013, the disclosure of which is hereby incorporated by reference in its entirety.

TECHNICAL FIELD

The present disclosure is generally related to magnetic random access memory (MRAM) devices and, in particular, to a current sensing scheme for the MRAM devices.

BACKGROUND

In magnetic random access memories (MRAMs), memory cells are arranged in arrays having rows and columns. In some approaches, with reference to an accessed memory cell selected from a row and a column, a sense amplifier is used to compare a current flowing through the accessed memory cell against a reference current. Ideally, the value of the reference current is averaged between the currents when the accessed memory cell has corresponding high and low logic values. To that end, two reference cells are used, one having a low logic value, and one having a high logic value.

Effectively, the sense amplifier receives one accessed memory cell at one input and two reference cells at another input, and is therefore not symmetrical. As a result, the sense amplifier experiences unbalanced parasitic decoupling during a transition period after the sense amplifier is turned on, which, in turns, requires a long wait time for the currents at the two inputs of the sense amplifier to be stabilized. Further, the capacitive loads at the two inputs of the sense amplifier are not equal, and cause inaccuracies in fast dynamic sensing when instantaneous current difference is detected and amplified.

At high temperature such as 85° C., non-selected cells in two columns containing the reference cells have twice higher leakage current than non-selected cells in a regular column containing an accessed memory cell. As a result, a higher leakage current in the reference columns favors sensing a high logic value and contributes an error when sensing a low logic value.

BRIEF DESCRIPTION OF THE DRAWINGS

The details of one or more embodiments of the disclosure are set forth in the accompanying drawings and the description below. Other features and advantages of the disclosure will be apparent from the description, drawings and claims.

FIG. 1 is a schematic circuit diagram of a circuit for performing a differential current sensing scheme for an MRAM array in accordance with some embodiments.

FIG. 2 is a schematic circuit diagram of a regular cell for storing a bit of data in accordance with some embodiments.

FIG. 3 is a schematic circuit diagram of a dummy cell in accordance with some embodiments.

FIG. 4 is a schematic circuit diagram illustrating differential current sensing of the circuit in FIG. 1 under the user mode in accordance with some embodiments.

FIG. 5 is a schematic circuit diagram illustrating differential current sensing of the circuit in FIG. 1 under the reference cell mode in accordance with some embodiments.

FIG. 6 is a schematic circuit diagram of the read multiplexer and associated circuits in accordance with some embodiments.

FIG. 7 is a schematic circuit diagram of the current sense amplifier with mode selection in accordance with some embodiments.

FIG. 8 is a timing diagram of some signals during differential current sensing in accordance with some embodiments.

Like reference symbols in the various drawings indicate like elements.

DETAIL DESCRIPTION

Embodiments, or examples, of the disclosure illustrated in the drawings are now described using specific languages. It will nevertheless be understood that no limitation of the scope of the disclosure is thereby intended. Any alterations and modifications in the described embodiments, and any further applications of principles described in this document are contemplated as would normally occur to one of ordinary skill in the art to which the disclosure relates. Reference numbers may be repeated throughout the embodiments, but this does not necessarily require that feature(s) of one embodiment apply to another embodiment, even if they share the same reference number. It will be understood that when an element is referred to as being “connected to” or “coupled to” another element, it may be directly connected to or coupled to the other element, or intervening elements may be present.

In the below description, a signal is asserted with a logical high value to activate a corresponding device when the device is active high. In contrast, the signal is deasserted with a low logical value to deactivate the corresponding device. When the device is active low, however, the signal is asserted with a low logical value to activate the device, and is deasserted with a high logical value to deactivate the device.

Circuit for Differential Current Sensing Scheme for MRAM

FIG. 1 is a schematic circuit diagram of a circuit 1 for a differential current sensing scheme for an MRAM array in accordance with some embodiments. FIG. 1 shows an overall structure for the differential current sensing scheme. In FIG. 1, the circuit 1 includes an MRAM array including array segments SEG₁ and SEG₂, read multiplexers 14 and 24 for the array segments SEG₁ and SEG₂, respectively, current sense amplifiers (CSAs) with mode selection 12 and 22 for the array segments SEG₁ and SEG₂, respectively, and an intermediate switch MS between the two array segments SEG₁ and SEG₂.

The array segment SEG₁ includes N regular columns Col₁[0] to Col₁[N−1], a reference column RCol₀, and a plurality of dummy columns DCol. The regular columns Col₁[0] to Col₁[N−1] include a plurality of rows of regular cell segments, and each regular cell segment includes a plurality of regular cells 162 for storing data. FIG. 2 is a schematic circuit diagram illustrating a regular cell 162 for storing a bit of data in accordance with some embodiments. The regular cell 162 includes an MTJ element 1622 and a pass gate 1624. In a standard configuration as shown, a free layer 16222 of the MTJ element 1622 is coupled to a bit line BL of a regular column containing the regular cell 162, a fixed layer 16224 of the MTJ element 1622 is coupled to one of a source and a drain of the pass gate 1624. The other of the source and drain of the pass gate 1624 is coupled to a sense line SL of the regular column containing the regular cell 162. A double arrow in the free layer 16222 is used to represent that a magnetization vector of the free layer 16222 can be parallel or anti-parallel to that of a fixed layer 16224, which is represented by a single arrow, depending on a logic value of the bit stored. Alternatively, in a reverse configuration, the free layer 16222 is coupled to one of a source and a drain of the pass gate 1624 and the fixed layer 16224 is coupled to the bit line BL of the regular cell 162. The rest of the configuration stays the same. The pass gate 1624 is controlled by a word line WL coupled with a gate of the pass gate 1624 for selecting a row of the array segment SEG₁. For simplicity, in FIG. 1, a bit line BL and a source line SL, described with reference to FIG. 2, of a regular column Col₁[0], . . . , or Col₁[N−1] are represented by a line connecting the regular cells in the corresponding column and the read multiplexer 14. Further, a regular cell 162 of the regular column Col₁[0], . . . , or Col[N−1] is represented by an MTJ element 1622. The MTJ element 1622 indicates whether a cell is a regular cell, a reference cell or a dummy cell. The reference column RCol₀ includes reference cells 166 similar to the regular cell 162 in FIG. 2. Each of the reference cells 166 stores the logic low value, as indicated by parallel magnetization vectors in the reference cell 166.

Symmetric to the array segment SEG₁, the array segment SEG₂ includes N regular columns Col₂[0] to Col₂[N−1], a reference column RCol₁, and a plurality of dummy columns DCol. The array segment SEG₂ is different from the array segment SEG₁ in that the reference column RCol₁ includes reference cells 266 each of which stores the logic high value, as represented by anti-parallel magnetization vectors in the reference cell 266. In some embodiments, reference columns have some cells with one logic value and the rest of the cells with an opposite logic value. In such embodiments, a reference cell in a selected row from the segment SEG₁ and a reference cell in a selected row from the segment SEG₂ have opposite logic values.

Both the array segment SEG₁ and the array segment SEG₂ include dummy columns DCol. FIG. 3 is a schematic circuit diagram illustrating a dummy cell 164 in a dummy column DCol in FIG. 1 in accordance with some embodiments. The dummy cell 164 includes an MTJ element 1642 and a pass gate 1644. Similar to the regular cell 162 in FIG. 2, the MTJ element 1642 and the pass gate 1644 are connected in series. Further, two ends of the series-connected MTJ element 1642 and pass gate 1644 are coupled to a bit line GBL and a source line GSL of the dummy column DCol, respectively. The bit line GBL and the source line GSL are grounded. Therefore, no read or write operation is performed on the dummy cell 164, and the magnetization vectors of the MTJ element 1642 become irrelevant and are shaded. For simplicity, in FIG. 1, a bit line GBL and a source line GSL, described with reference to FIG. 3, of a dummy column DCol are represented by a line connecting the dummy cells in the corresponding dummy column without connecting to the read multiplexer 14, and a dummy cell 164 of the dummy column DCol is represented by a shaded MTJ element 1642.

In FIG. 1, the array segment SEG₁ is arranged to begin with a dummy column DCol, followed by the regular columns Col₁[0] to Col₁[N−1], another dummy column DCol, and then the reference column RCol₀. The array segment SEG₁ is followed by the array segment SEG₂ which is arranged to begin with a dummy column DCol, followed by the reference column RCol₁, another dummy column DCol, and then the regular columns Col₂[0] to Col₂[N−1]. The array segment SEG₂ is again be followed by another array segment (not shown) similar to the array segment SEG₁. Therefore, each of the regular column Col₁[0] to Col₁[N−1], reference column RCol₀, reference column RCol₁ and the regular column Col₂[0] to Col₂[N−1] is sandwiched between two of the dummy columns DCol, and are thereby shielded.

In each segment SEG₁ or SEG₂ during sensing, only one selected regular column Col₁[i] or Col₂[j] and the reference column RCol₀ or RCol₁ are active. Other non-selected regular columns Col₁[0] to Col₁[i−1] and Col₁[i+1] to Col₁[N−1] and other non-selected regular columns Col₂[0] to Col₂[j−1] and Col₂[j+1] to Col₂[N−1] stay at some potential, e.g., at ground in some embodiments. In order to keep dynamic capacitances for active columns that are not surrounded, and thus not shielded, by unselected columns, dummy columns DCol are used to shield the active columns, which include, a selected regular column Col₁[i] in the regular columns Col₁[0] to Col₁[N−1], the reference column RCol₀, and a selected regular column Col₂[j] in the regular columns Col₂[0] to Col₂[N−1]. In some embodiments, if the selected regular column Col₁[i] or Col₂[j] is surrounded by unselected regular columns Col₁[m−1] and Col₁[i+1], or Col₂[j−1] and Col₂[j+1], the selected regular column Col₁[i] or Col₂[j] is shielded. If, however, the selected regular column Col₁[i] or Col₂[j] is not surrounded by unselected regular columns, a dummy column DCol is used in conjunction with the unselected regular column to surround the active column and thus shield the active column. In some embodiments as illustratively shown in FIG. 1, dummy columns DCol are inserted at where the active column is not surrounded by unselected columns during sensing, including, for example, column Col₁[0], Col₁[N−1], RCol₀, RCol₁, Col₂[0] or Col₂[N−1]. For another example, a dummy column DCol is inserted between the reference columns RCol₀ and RCol₁, because both reference columns RCol₀ and RCol₁ are active at the same time. A dummy column DCol is inserted between the regular column Col₁[N−1] and the reference column RCol₀, because both the regular columns Col₁[N−1] and the reference column RCol₀ can be active at the same time. Further, a dummy column DCol is inserted between the regular column Col₂[0] and the reference column RCol₁ because both the regular column Col₂[0] and the reference column RCol₁ can be active at the same time

The read multiplexer 14 receives the regular columns Col₁[0] to Col₁[N−1], the reference column RCol₀, the read enable signal RDEN, and a column address Y₁ [N:0] as inputs. In response to the read enable signal RDEN, the read multiplexer 14 selectively couples one of the regular columns Col₁[0] to Col₁[N−1] to a data output RD₁, and couples the reference column RCol₀ to a reference output REF₀ based on the column address Y₁[N:0]. Similarly, the read multiplexer 24 receives the regular columns Col₂[0] to Col₂[N−1], the reference column RCol₁, the read enable signal RDEN, and a column address Y₂[N:0] as inputs. In response to the read enable signal RDEN, the read multiplexer 24 selectively couples one of the regular columns Col₂[0] to Col₂[N−1] to a data output RD₂, and couples the reference column RCol₁ to a reference output REF₁ based on the column address Y₂[N:0].

The CSA with mode selection 12 has three inputs coupled to the data output RD₁ of the read multiplexer 14, the reference output REF₀ of the read multiplexer 14, and the reference output REF₁ of the read multiplexer 24, and generates an output RDO₁. Symmetrically, the CSA with mode selection 22 has three inputs coupled to the data output RD₂ of the read multiplexer 24, the reference output REF₁ of the read multiplexer 24, and the reference output REF₀ of the read multiplexer 14, and generates an output RDO₂. The CSAs 12 and 22 operate in two modes, a user mode and a reference cell mode. The user mode is for reading data bits stored in a regular cell in the array segment SEG₁ and a regular cell in the second array segment SEG₂, respectively. The reference cell mode is for checking reference bits stored in a reference cell in the reference column RCol₀ and a reference cell in the reference column RCol₁, respectively. The CSA 12 receives two control signals, a sense amplifier select signal SASEL₁ and a reference mode signal REFMD for the user mode and the reference cell mode. Similarly, the CSA 22 receives two control signals, a sense amplifier select signal SASEL₂ and the reference mode signal REFMD for the user mode and the reference cell mode. In the user mode, the signal REFMD is deasserted, and both signals SASEL₁ and SASEL₂ are asserted to select both the CSAs 12 and 22. In the reference cell mode, the signal REFMD is asserted, and one of the signals SASEL₁ and SASEL₂ is asserted to select one of the CSAs 12 and 22. Detailed operations of the user mode and the reference cell mode are discussed with reference to FIGS. 4 and 5, respectively.

The intermediate switch MS couples the reference output REF₀ of the read multiplexer 14 to the reference output REF₁ of the read multiplexer 24 if the reference mode signal REFMD is deasserted, and disconnects the reference output REF₀ of the read multiplexer 14 from the reference output REF₁ of the read multiplexer 24 if the reference mode signal REFMD is asserted. In some embodiments, the intermediate switch MS is not used.

FIG. 4 is a schematic circuit diagram illustrating differential current sensing of the circuit 1 in FIG. 1 under the user mode, in accordance with some embodiments. In the user mode, the read multiplexer 14 in FIG. 1 couples a regular cell 162 of a selected regular column Col₁[i] to the data output RD₁ of the read multiplexer 14, and couples a reference cell 166 of the reference column RCol₀ to the reference output REF₀ of the read multiplexer 14. For simplicity, in FIG. 4, the data output RD₁ and the reference output REF₀ are shown, but the read multiplexer 14 is not shown. Similarly, the read multiplexer 24 couples a regular cell 262 of a selected regular column Col₂[j] to the data output RD₂ of the read multiplexer 24, and couples a reference cell 266 to the reference column RCol₁ to the reference output REF₁ of the second read multiplexer 24. For simplicity, in FIG. 4, the data output RD₂ and the reference output REF₁ are shown, but the read multiplexer 24 is not shown. In accordance with some embodiments, the selected regular cell 162 or 262 and the reference cell 166 or 266 are in the same row to compensate resistance of metal routing in columns. For illustration purposes, the cells in the first row are selected in each column. However, any row could be selected and/or different rows in different array segments could be selected. The data output RD₁ and the reference output REF₀ of the read multiplexer 14 and the reference output REF₁ of the read multiplexer 24 are coupled to the three inputs of the CSA 12, respectively. The data output RD₂ and the reference output REF₁ of the read multiplexer 24 and the reference output REF₀ of the read multiplexer 14 are coupled to the three inputs of the CSA 22, respectively.

The CSA 12 includes a CSA 122 and a mode multiplexer 124. The mode multiplexer 124 includes four switches S₁₂₁, S₁₂₂, S₁₂₃ and S₁₂₄. In the user mode, the switch S₁₂₁ connects the regular cell 162 in the selected regular column Col₁[i] to a node SD₁ of the CSA 12, the switch S₁₂₂ disconnects the reference cell 166 in the reference column RCol₀ from the node SD₁, the switch S₁₂₃ connects the reference cell 166 in the reference column RCol₀ to a node SDB₁ of the CSA 12, and the switch S₁₂₄ connects the reference column RCol₁ to the node SDB₁. A first current flows through the node SD₁, the switch S₁₂₁, a switch S₁₄₂, . . . or S₁₄₄ of the read multiplexer 14 in FIG. 6, the sense line SL in FIG. 2, the pass gate 1624, the MTJ element 1622 and the bit line BL of the regular cell 162, some other circuitry related to writing, and finally to ground VSS. A second current flows through the node SDB₁, the switch S₁₂₃, the switch S₁₄₆ in FIG. 6, a sense line, a pass gate, an MTJ element, and a bit line of the reference cell 166 in FIG. 1, some other circuitry related to writing and finally to ground VSS. The reference cell 166, the sense line, the pass gate, the MJT element, and the bit line of the reference cell 166 are similar to the cell 162, the sense line SL, the pass gate 1624, the MJT element 1622, and the bit line BL in FIG. 2, respectively. The CSA 122 compares the first current at the node SD₁ against the second current at the second node SDB₁ to generate the output RDO₁.

Symmetrically, the CSA 22 includes a CSA 222 and a mode multiplexer 224. The mode multiplexer 224 includes four switches S₂₂₁, S₂₂₂, S₂₂₃ and S₂₂₄. In the user mode, the switch S₂₂₁ connects the selected regular column Col₂[j] to a node SD₂ of the CSA 22, the switch S₂₂₂ disconnects the reference column RCol₁ from the node SD₂, the switch S₂₂₃ connects the reference column RCol₁ to a node SDB₂ of the CSA 22, and the switch S₂₂₄ connects the reference column RCol₀ to the node SDB₂. Current flows from the node SD₂ and the node SDB₂ of the CSA 22 to ground VSS are similar to those of the CSA 12 discussed above, except components in the array segment SEG₁ in FIG. 1 are replaced by corresponding components in the array segment SEG₂. The CSA 222 compares the current at the node SD₂ against the current at the node SDB₂ to generate the output RDO₂.

In the user mode, the switch MS couples the reference column RCol₀ to the reference column RCol₁, thereby forming a common node between the reference columns RCol₀ and RCol₁. In some embodiments illustrated in FIG. 4, the switch MS is used because in the CSA 12, the switch S₁₂₃ and the switch S₁₂₄ couple both the reference columns RCol₀ and RCol₁ to the node SDB₁. Further, in the CSA 22, the switch S₂₂₃ and the switch S₂₂₄ couple both the reference columns RCol₀ and RCol₁ to the node SDB₂. The switch MS further ensures that a current at the common node is a summative current of a current flowing in the reference column RCol₀ corresponding to the logic low value and a current flowing in the second reference column RCol₁ corresponding to the logic high value.

In the user mode, two CSAs 122 and 222 are used to achieve differential current sensing for reading two data bits. Each of the CSAs 122 and 222 effectively has similar amount of currents flowing through the node SD₁ or SD₂ and the node SDB₁ or SDB₂. Because a current I₀ flowing through the reference cell 166 in the reference column RCol₀ and a current I₁ flowing through the reference cell 266 in the reference column RCol₁ are summed and are equally divided between the CSAs 122 and 222, the current flowing through the node SDB₁ or SDB₂ of the CSA 122 or 222 is 0.5(I₀+I₁). Therefore, a magnitude of the current flowing through the node SDB₁ or SDB₂ is similar to that of the current flowing through the node SD₁ or SD₂, which is equal to either I₀ or I₁ depending on the data bit stored in the regular cell 162 or 262. In contrast to asymmetrical magnitudes of currents that flow through two inputs of the current sense amplifier in other approaches, the currents flowing through the node SD₁ or SD₂ and the node SDB₁ or SDB₂ of the present disclosure is symmetrical in magnitude.

In the user mode, each of the CSAs 122 and 222 effectively has symmetrical capacitive loading to the node SD₁ or SD₂ and the node SDB₁ or SDB₂. Because the nodes SDB₁ and SDB₂ of both of the CSAs 122 and 222 are coupled to the two reference columns RCol₀ and RCol₁, an effective capacitive loading to the node SDB₁ or SDB₂ of the CSA 122 or 222 is that of one column. Compared to a capacitive loading to the node SD₁ or SD₂ of the CSA 122 or 222, which is that of one regular column Col₁[i] or Col₂[j], the effective capacitive loading to the second node SDB₁ or SDB₂ is also that of one column, and is therefore symmetrical.

In the user mode, each of the CSAs 122 and 222 effectively has symmetrical leakage currents with respect to the node SD₁ or SD₂, and the node SDB₁ or SDB₂. Because the nodes SDB₁ and SDB₂ of both the CSAs 122 and 222 are coupled to the two reference columns RCol₀ and RCol₁, the leakage currents from the unselected cells in the two reference columns RCol₀ and RCol₁ are summed and are equally divided between the two nodes SDB₁ and SDB₂. Therefore, each of the node SDB₁ or SDB₂ is effectively experiencing the leakage current of one column. Compared to a leakage current flowing through the node SD₁ or SD₂, which is the leakage current of one regular column Col₁[i] or Col₂[j], the effective leakage current through the second node SDB₁ or SDB₂ is also one column and is therefore symmetrical. Because of comparable current magnitudes and symmetrical capacitive loading for the node SD₁ or SD₂ and the node SDB₁ or SDB₂, accuracy and noise immunity of differential current sensing are improved and dynamic sensing becomes possible with embodiments of the present disclosure.

FIG. 5 is a schematic circuit diagram illustrating differential current sensing of the circuit 1 in FIG. 1 under the reference cell mode in accordance with some embodiments. In the reference cell mode, the read multiplexer 14 in FIG. 1 couples a reference cell 166 of the reference column RCol₀ to the reference output REF₀ of the read multiplexer 14. Further, the read multiplexer 24 couples a reference cell 266 of the reference column RCol₁ to the reference output REF₁ of the read multiplexer 24. For illustration purposes, the cells in the first row are selected in each column. However, any row could be selected and/or different rows in different array segments could be selected. The reference output REF₀ of the read multiplexer 14 and the reference output REF₁ of the read multiplexer 24 are coupled to two of the three inputs of the CSA 12. As an example, the CSA 12 is selected. Either the CSA 12 or the CSA 22 can be selected in the reference cell mode.

In the multiplexer 124, the switch S₁₂₁ disconnects the data output RD₁ of the read multiplexer 14 in FIG. 1 from the node SD₁, the switch S₁₂₂ connects the reference cell 166 in the reference column RCol₀ to the node SD₁, the switch S₁₂₃ disconnects the reference cell 166 in the reference column RCol₀ from the node SDB₁ and the switch S₁₂₄ connects the reference cell 266 in the reference column RCol₁ to the node SDB₁. Current flows from the node SD₁ and the node SDB₁ of the CSA 12 to ground VSS are similar to those in the user mode, except the regular cell 162 is replaced by the reference cell 166 in the reference column RCol₀ and the reference cell 166 in the reference column RCol₀ is replaced by the reference cell 266 in the reference column RCol₁. The CSA 122 compares the current at the node SD₁ against the current at the node SDB₁ to generate the output RDO₁.

In the reference cell mode, the switch MS disconnects the reference column RCol₀ from the reference column RCol₁, thereby breaking the common node between the reference columns RCol₀ and RCol₁.

Further, one CSA 122 is used to achieve differential current sensing for checking reference bits in the reference cells of two reference columns RCol₀ and RCol₁. A current I₀ flowing through the reference cell 166 in the reference column RCol₀ and the node SD₁ of the CSA 122 is similar in magnitude to the current I₁ flowing through the reference cell 266 in the reference column RCol₀ and the node SDB₁ of the CSA 122. Also, a capacitive loading to the node SD₁ is that of one reference column RCol₀ and a capacitive loading to the node SDB₁ is that of one reference column RCol₁. Therefore, the capacitive loading to the two nodes SD₁ and SDB₁ are symmetrical. Furthermore, a leakage current flowing through the node SD₁ flows from one reference column RCol₀ and a leakage current flowing through the node SDB₁ flows from one reference column RCol₁. Hence, the leakage currents flowing through the two nodes SD₁ and SDB₁ are symmetrical. Because of comparable current magnitudes and symmetric capacitive loading for the node SD₁ and the node SDB₁, accuracy and noise immunity of differential current sensing are improved.

FIG. 6 is a schematic circuit diagram illustrating the read multiplexer 14 in FIG. 1 and associated circuits, in accordance with some embodiments. For illustration purposes, the read multiplexer 14 is shown. The same structure applies to the read multiplexer 24. The read multiplexer 14 includes a plurality of switches S₁₄₂ to S₁₄₄ corresponding to the regular columns Col₁[0] to Col₁[N−1], respectively. The switches S₁₄₂ to S₁₄₄ are configured to selectively couple one of the regular columns Col₁[0] to Col₁[N−1] to the data output RD₁ of the read multiplexer 14 in response to a corresponding control signals CS₀ to CS_(N-1). The read multiplexer 14 further includes an additional switch S₁₄₆ corresponding to the reference column RCol₀ in FIG. 1. The switch S₁₄₆ is configured to selectively couple the reference column RCol₀ to the reference output REF₀ of the read multiplexer 14 in response to a control signal CS_(N). In some embodiments, the switch S₁₄₆ is not used, and the reference column RCol₀ is directly coupled to the reference output REF₀. However, the switch S₁₄₆ is used in FIG. 6 to help in maintaining symmetry with respect to the outputs RD₁ and REF₀. In response to the read enable signal RDEN, the control signals CS₀ to CS_(N) are provided by control logic blocks 142 to 144 based on the column address Y₁[N:0].

Because the switches S₁₄₂ to S₁₄₄ for the regular columns Col₁[0] to Col₁[N−1] are coupled to the data output RD₁ and the switch S₁₄₆ for the reference column RCol₀ is coupled to the reference output REF₀, capacitive loading to the data output RD₁ and the reference output REF₀ are imbalanced. Since the data output RD₁ and the reference output REF₀ are coupled to the node SD₁ and the node SDB₁ of the CSA 122 in FIG. 4 in the user mode, maintaining balance between the two outputs RD₁ and REF₀ helps in improving sensing accuracy and immunity to noise. In order to balance the loading of the switches S₁₄₂ to S₁₄₄ to the data output RD₁, a plurality of dummy switches DS₁₄₂ to DS₁₄₄ coupling to the reference output REF₀ and corresponding to the switches S₁₄₂ to S₁₄₄ are introduced. Similarly, in order to balance the loading of the switch S₁₄₆ to the reference output REF₀, a dummy switch DS₁₄₆ coupling to the data output RD₁ and corresponding to the switch S₁₄₆ is introduced. The dummy switches DS₁₄₂ to DS₁₄₆ are maintained in a turned off state. In some embodiments where an NMOS transistor is used as a dummy switch S₁₄₆, the gate of the NMOS transistor is grounded.

In accordance with some embodiments, the switches S₁₄₂ to S₁₄₆ are coupled to the sense lines SL₀ to SL_(N-1) of the regular columns Col₁[0] to Col₁[N−1] and the sense line SL_(N) of the reference column RCol₀, respectively. Further, the dummy switches DS₁₄₂ to DS₁₄₆ are coupled to the bit lines BL₀ to BL_(N-1) of the regular columns Col₁[0] to Col₁[N−1] and the bit line BL_(N) of the reference column RCol₀, respectively. In some embodiments, the dummy switches DS₁₄₂ to DS₁₄₆ are not coupled to the bit lines BL₀ to BL_(N-1). However coupling the dummy switches DS₁₄₂ to DS₁₄₆ to bit lines BL₀ to BL_(N-1) simplifies building equivalent load for the data output RD₁ and the reference output REF₀.

FIG. 7 is a schematic circuit diagram illustrating the CSA 12 in FIG. 1, in accordance with some embodiments. For illustration purposes, the CSA 12 is shown. The same structure applies to the CSA 22. The CSA 12 includes the CSA 122 and the mode multiplexer 124. The CSA 122 is a dynamic current sense amplifier that detects instantaneous current difference. The CSA 122 includes a pre-charge device 1226, a clamping device 1224, a pull-up device 1222, a differential amplifier 1220, a latch 1228 and control logic gates Q₁ and Q₂. The mode multiplexer 124 includes 6 NMOSs M16, M17, M18, M19, M20 and M 21 and control logic gates Q₃, Q₄, Q₅ and Q₆.

The mode multiplexer 124 shown in FIG. 7 is an implementation of the mode multiplexer 124 in FIG. 4 and FIG. 5 at the transistor level. The NMOSs M16 and M17 correspond to the switch S₁₂₁, the NMOS M18 corresponds to the switch S₁₂₂, the NMOS M19 corresponds to the switch S₁₂₃, and the NMOSs M20 and M21 correspond to the switch S₁₂₄. Drains and sources of the NMOSs M16 and M17 are coupled to the node SD₁ of the CSA 12 and the data output RD₁ of the read multiplexer 14 in FIG. 1, respectively. A drain and a source of the NMOS M18 are coupled to the node SD₁ and the reference output REF₀ of the read multiplexer 14, respectively. A drain and a source of the NMOS M19 are coupled to the node SDB₁ and the reference output REF₀ of the read multiplexer 14, respectively. Drains and sources of the NMOSs M20 and M21 are coupled to the node SDB₁ and the reference output REF₁ of the read multiplexer 24 in FIG. 1, respectively. For symmetry purposes, the NMOSs M16, M17 and M18 are coupled to the node SD₁, and the NMOSs M19, M20 and M21 are coupled to the node SDB₁.

Gates of the NMOSs M16 and M17 are coupled to an output of the control logic gate Q₃. A gate of the NMOS M18 is coupled to an output of the control logic gate Q₄. A gate of the NMOS M19 is coupled to an output of the control logic gate Q₆. A gate of the NMOS M20 is coupled to the sense amplifier select signal SASEL₁ and a gate of the NMOS M21 is grounded. The control logic gate Q₄ receives the signal SASEL₁ and the signal REFMD as inputs. The control logic gates Q₃ and Q₆ receive the signal SASEL₁ as one input, and a complemented output of the control logic gate Q₄ through the control logic gate Q₅ as the other input. In accordance with some embodiments, the control logic gates Q₃, Q₄, Q₅ and Q₆ are two AND gates, an inverter and an AND gate, respectively. Therefore, when the signal SASEL₁ is asserted and the signal REFMD is deasserted in the user mode, the NMOSs M16 and M17 couple the data output RD₁ of the read multiplexer 14 to the node SD₁, the NMOS M19 couples the reference output REF₀ of the read multiplexer 14 to the node SDB₁, and the NMOS M20 couples the reference output REF₁ of the read multiplexer 24 to the node SDB₁. In contrast, when the signal SASEL₁ is asserted and the signal REFMD is asserted in the reference cell mode, the NMOS M18 couples the reference output REF₀ of the read multiplexer 14 to the node SD₁, and the NMOS M20 couples the reference output REF₁ of the read multiplexer 24 to the node SDB₁. When the CSA 22 is selected in the reference cell mode, the signal SASEL₁ is deasserted and all of the NMOSs M16 to M21 are turned off.

The pre-charge device 1226 of the CSA 122 is configured to pre-charge both the node SD₁ and the node SDB₁ to ground VSS in response to the assertion of a pre-charge signal PCH. The pre-charge device 1226 includes two NMOSs M14 and M15 having sources coupled to ground VSS and an NMOS M13 coupling the drains of the two NMOSs M14 and M15 in response to the assertion of the pre-charge signal PCH.

The pull-up device 1222 of the CSA 122 pulls up both the node SD₁ and the node SDB₁ through the clamping device 1224 when a sense amplifier enable signal SAEN and the pre-charge signal PCH are deasserted. The pull-up device 1222 includes two PMOSs M9 and M10 having sources coupled to a power supply VDD, drains coupled to the node SD₁ and the node SDB₁ through the clamping device 1224, respectively, gates coupled together and to an output of the control logic gate Q₂ receiving the signal SAEN and the signal PCH. In accordance with some embodiments, the control logic gate Q₂ is an OR gate.

The clamping device 1224 of the CSA 122 is configured to clamp voltages at the node SD₁ and the node SDB₁ to a predetermined level that does not overwrite a data bit stored in a memory cell when the pull-up device 1222 is pulling up. In some embodiments, the predetermined level is 0.2V. The clamping device 1224 includes two NMOSs M11 and M12 configured to couple the drains of the PMOSs M9 and M10 of the pull-up device 1222 to the node SD₁ and the node SDB₁, respectively. Gates of the two NMOSs M11 and M12 are coupled together and to a clamping voltage control signal VCL which controls impedance of the two NMOSs M11 and M12 to provide the desired voltage drop with respect to VDD through the NMOSs M11 and M12.

The differential amplifier 1220 of the CSA 122 is configured to convert difference in currents at the node SD₁ and the node SDB₁ received through the clamping device 1224 to difference in voltages, and amplify the difference in voltages. The differential amplifier 1220 includes a pair of PMOSs M1 and M2, a pair of PMOSs M3 and M4, a pair of NMOSs M5 and M6, and a pair of NMOSs M7 and M8.

The pair of PMOSs M1 and M2 is configured to provide power supply VDD to the other elements of the differential amplifier 1220 in response to the deassertion of the pre-charge signal PCH. In the pair of PMOSs M1 and M2, sources are coupled to the power supply VDD, drains are coupled together and to both of sources of the pair of PMOSs M3 and M4, and gates are coupled together and to the pre-charge signal PCH.

The pair of PMOSs M3 and M4 is configured to convert difference in currents at the node SD₁ and the node SDB₁ received through the clamping device 1224 to difference in voltages. In the pair of PMOSs M3 and M4, the sources are coupled to the power supply VDD through the pair of PMOSs M1 and M2, a drain of the PMOS M4 is coupled to a gate of the PMOS M3 and to the node SD₁, and a drain of the PMOS M3 is coupled to a gate of the PMOS M4 and to the node SDB₁. Therefore, the pair of PMOSs M3 and M4 is cross-coupled. The drains of the pair of PMOSs M3 and M4 serve as differential voltage outputs SO and SOB of the differential amplifier 1220, respectively.

The pair of NMOSs M5 and M6 is configured to couple drains of the pair of NMOSs M7 and M6 to the drains of the pair of PMOSs M3 and M4 in response to the assertion of a latch enable signal LAEN and the assertion of the sense amplifier select signal SASEL₁. Gates of the pair of NMOSs M5 are coupled together and to the control logic gate Q₁ receiving the latch enable signal LAEN and the sense amplifier select signal SASEL₁. In accordance with some embodiments, the control logic gate Q₁ is an AND gate.

The pair of NMOSs M7 and M8 forms a cross-coupled inverters with the pair of PMOSs M3 and M4 when the latch enable signal LAEN and the sense amplifier select signal SASEL₁ are asserted. The cross-coupled inverters serve to amplify the voltage difference developed at the differential voltage outputs SO and SOB.

The latch 1228 of the CSA 122 is configured to latch the differential voltage outputs SO and SOB when the latch enable signal LAEN and the sense amplifier select signal SASEL₁ are asserted. In accordance with some embodiments, the latch 1228 is an SR latch, of which a set input S receives the differential voltage output SO, a reset input R receives the other differential voltage output SOB, an enable input E receives the output of the control logic gate Q₁, and a data output Q serves as the output RDO₁ of the CSA 12.

Signals for Differential Current Sensing Scheme for MRAM

FIG. 8 is a timing diagram 800 illustrating some signals in FIG. 1 and in FIG. 7 during differential current sensing, in accordance with some embodiments. For illustration purposes, the signals of the CSA 12 are used, and the same timing diagram 800 also applies to the CSA 22. Additionally, the timing diagram 800 also applies to both the user mode and the reference cell mode. During a pre-charge phase before a time t₈₁₀, the pre-charge signal PCH is asserted with a high logical value. The node SD₁ and the node SDB₁ are pre-charged to ground VSS by the pre-charge device 1226 in FIG. 7. Therefore, both the node SD₁ and the node SDB₁ start from ground VSS before currents are applied to them.

When the read enable signal RDEN is asserted with a high logical value at the time t₈₁₀, the pre-charge signal PCH is deasserted and a charging current stabilization phase begins. Two columns are selected based on the asserted bits Y₁[m] and Y₁[n] of the column address Y₁ [N:0] by the read multiplexer 14 in FIG. 1. Further, the two columns are coupled to the node SD₁ and the node SDB₁, respectively. The two columns include a regular column and the reference column in the user mode, and include both reference columns in the reference cell mode. The pull-up device 1222 starts charging the node SD₁ and the node SDB₁ through the clamping device 1224 until currents through the node SD₁ and the node SDB₁ reach stabilization at a time t₈₂₀. When stabilization is reached, voltages at the two nodes SD₁ and SDB₁ are at a predetermined clamping voltage of about 0.2V in some embodiments, depending on the clamping voltage control signal VCL to the clamping device 1224. Between time t₈₁₀ and t₈₂₀, the differential amplifier 1220, with the pull-up device 1222, charges the differential voltage outputs SO and SOB. By the time t₈₂₀, the outputs SO and SOB have reached supply voltage VDD.

At the time t₈₂₀, the sense amplifier enable signal SAEN is asserted, and an I to V conversion phase begins. The pull-up device 1222 stops charging the node SD₁, the node SD₂, and the outputs SO and SOB. The difference in resistance between the two selected columns causes the current to flow through the node SD₁ to be smaller than that through the node SDB₁. Therefore, the voltage at the node SD₁ drops at a rate slower than that of at the node SDB₁, which, in turn, causes the voltage at the output SO drops at a rate slower than that of at the output SOB. Because the output SOB drops faster, the PMOS M3 is strongly turned on while the PMOS M4 is weakly turned on. The PMOS M4 pulls the output SO towards VDD while the PMOS M3 slows down the voltage drop at the SOB. Therefore, the difference in voltages at the outputs SO and SOB amplifies. This in turn causes similar transitions at the node SD₁ and the node SDB₁.

Then, at a time t₈₃₀, the latch enable signal LAEN is asserted and a data latching phase begins. The cross-coupled inverters formed by the PMOSs M3 and M4 and the NMOSs M7 and M8 are in operation. Because the output SO is close to VDD, the PMOS M3 is turned off and the NMOS M7 is turned on and thereby pulling the output SOB to ground VSS. This in turn causes the PMOS M4 to turn on more strongly. The positive feedback of the cross-coupled inverters M3 and M4 further amplifies the difference in voltages at the outputs SO and SOB. Meanwhile, the latch 1228 latches the outputs SO and SOB and generates the output RDO₁ of the CSA 12. Then, at a time t₈₄₀, the pre-charge signal PCH is asserted to indicate that the differential current sensing for a read operation is completed.

In some embodiments, a circuit includes a cell segment, first and second reference cells, and a current sense amplifier. The first and second reference cells are configured to store opposite logic values, respectively. The current sense amplifier is configured with a first node and a second node for currents therethrough to be compared with each other. The current sense amplifier includes a multiplexer configured to couple the first reference cell or the second reference cell to the first node of the current sense amplifier, and couple the second reference cell or the first reference cell to the second node of the current sense amplifier in a first mode, and couple a cell of the cell segment to the first node of the current sense amplifier, and couple the first and second reference cells to the second node of the current sense amplifier in a second mode.

In some embodiments, a circuit includes an array segment, first and second reference columns, and a current sense amplifier. Each of the first and second reference columns comprises a plurality of reference cells. The plurality of reference cells of the first and second reference columns store opposite logic values, respectively. The current sense amplifier is configured with a first node and a second node for currents therethrough to be compared with each other. The current sense amplifier includes a multiplexer configured to couple the first reference column or the second reference column to the first node of the current sense amplifier, and couple the second reference column or the first reference column to the second node of the current sense amplifier in a first mode; and couple one column of the array segment to the first node of the current sense amplifier, and couple the first and second reference columns to the second node of the current sense amplifier in a second mode.

In some embodiments, in a method, a first reference cell or a second reference cell is selectively coupled to a first node of a current sense amplifier in a first mode. The second reference cell or the first reference cell is selectively coupled to a second node of the current sense amplifier in the first mode. Differential voltage outputs are generated based on currents through the first and second nodes of the current sense amplifier in the first mode. A cell of a cell segment is selectively coupled to the first node of the current sense amplifier in a second mode. First and second reference cells are selectively coupled to the second node of the current sense amplifier in the second mode. Differential voltage outputs are generated based on currents through the first and second nodes of the current sense amplifier in the second mode.

A number of embodiments of the disclosure have been described. It will nevertheless be understood that various modifications may be made without departing from the spirit and scope of the disclosure. For example, some transistors are shown to be N-type and some others are shown to be P-type, but the disclosure is not limited to such a configuration. Embodiments of the disclosure are applicable in variations and/or combinations of transistor types. A bit line BL or GBL is also called a data line because each of the bit line BL or GBL carries data for a corresponding cell.

The above description includes exemplary operations, but these operations are not necessarily required to be performed in the order shown. Operations may be added, replaced, changed order, and/or eliminated as appropriate, in accordance with the spirit and scope of the disclosure. Accordingly, the scope of the disclosure should be determined with reference to the following claims, along with the full scope of equivalences to which such claims are entitled. 

What is claimed is:
 1. A circuit, comprising: a cell segment; first and second reference cells configured to store opposite logic values, respectively; and a current sense amplifier, configured with a first node and a second node for currents therethrough to be compared with each other, wherein the current sense amplifier comprises a multiplexer configured to couple the first reference cell or the second reference cell to the first node of the current sense amplifier, and couple the second reference cell or the first reference cell to the second node of the current sense amplifier in a first mode, and couple a cell of the cell segment to the first node of the current sense amplifier, and couple the first and second reference cells to the second node of the current sense amplifier in a second mode.
 2. The circuit according to claim 1, further comprising: a plurality of switches, coupled to the first node of the current sense amplifier, and configured to selectively couple the cell of the cell segment to the first node of the current sense amplifier; and a plurality of loads, coupled to the second node of the current sense amplifier.
 3. The circuit according to claim 2, wherein the plurality of switches further comprise an additional switch; the additional switch is coupled to the second node of the current sense amplifier, and is configured to selectively couple the first reference cell to the second node of the current sense amplifier; the plurality of loads further comprise an additional load; and the additional load is coupled to the first node of the current sense amplifier.
 4. The circuit according to claim 2, wherein for each switch of the plurality of switches, one end of the switch is coupled to the first node of the current sense amplifier, and the other end of the switch is coupled to a source line of the cell of the cell segment corresponding to the switch; and for each load of the plurality of loads, one end of the load is coupled to the second node of the current sense amplifier, and the other end of the load is coupled to a data line of the cell of the cell segment corresponding to the load or is unconnected.
 5. The circuit according to claim 1, wherein the multiplexer of the current sense amplifier comprises: a first switch configured to disconnect the cell of the cell segment from the first node of the current sense amplifier in the first mode, and couple the cell of the cell segment to the first node of the current sense amplifier in the second mode; a second switch configured to couple the first reference cell to the first node of the current sense amplifier in the first mode and disconnect the first reference cell from the first node of the current sense amplifier in the second mode; a third switch configured to disconnect the first reference cell from the second node of the current sense amplifier in the first mode and couple the first reference cell to the second node of the current sense amplifier in the second mode; and a fourth switch configured to couple the second reference cell to the second node of the current sense amplifier in both the first mode and the second mode.
 6. The circuit according to claim 5, wherein the first switch comprises a first transistor and a second transistor coupled in parallel and both configured to be turned off in the first mode and turned on in the second mode; the second switch comprises a third transistor configured to be turned on in the first mode and turned off in the second mode; the third switch comprises a fourth transistor configured to be turned off in the first mode and turned on in the second mode; and the fourth switch comprises a fifth transistor and a sixth transistor coupled in parallel, wherein the fifth transistor is configured to be turned on in both the first mode and the second mode; and the sixth transistor is configured to be turned off in both the first mode and the second mode.
 7. The circuit according to claim 1, further comprising: a seventh switch configured to form a common node between the first reference cell and the second reference cell in the first mode, and to break the common node between the first reference cell and the second reference cell in the second mode.
 8. The circuit according to claim 1, further comprising: a plurality of dummy cells, wherein any of the cell segment, the first reference cell and the second reference cell is sandwiched between two of the dummy cells.
 9. The circuit according to claim 1, wherein the cell segment and the first reference cell are in the same row.
 10. A circuit, comprising: an array segment; first and second reference columns, wherein each of the first and second reference columns comprises a plurality of reference cells, and the plurality of reference cells of the first and second reference columns store opposite logic values, respectively; and a current sense amplifier, configured with a first node and a second node for currents therethrough to be compared with each other, wherein the current sense amplifier comprises a multiplexer configured to couple the first reference column or the second reference column to the first node of the current sense amplifier, and couple the second reference column or the first reference column to the second node of the current sense amplifier in a first mode; and couple one column of the array segment to the first node of the current sense amplifier, and couple the first and second reference columns to the second node of the current sense amplifier in a second mode.
 11. The circuit according to claim 10, further comprising: a plurality of switches, coupled to the first node of the current sense amplifier, and configured to selectively couple a column of the array segment to the first node of the current sense amplifier; and a plurality of loads coupled to the second node of the current sense amplifier.
 12. The circuit according to claim 11, wherein the plurality of switches further comprise an additional switch; the additional switch is coupled to the second node of the current sense amplifier, and is configured to selectively couple the first reference column to the second node of the current sense amplifier; the plurality of loads further comprise an additional load; and the additional load is coupled to the first node of the current sense amplifier.
 13. The circuit according to claim 11, wherein for each switch of the plurality of switches, one end of the switch is coupled to the first node of the current sense amplifier, and the other end of the switch is coupled to a source line of the column of the array segment corresponding to the switch; and for each load of the plurality of loads, one end of the load is coupled to the second node of the current sense amplifier, and the other end of the load is coupled to a data line of the column of the array segment corresponding to the load or is unconnected.
 14. The circuit according to claim 10, wherein the multiplexer of the current sense amplifier comprises: a first switch configured to disconnect the column of the array segment from the first node of the current sense amplifier in the first mode, and couple the column of the array segment to the first node of the current sense amplifier in the second mode; a second switch configured to couple the first reference column to the first node of the current sense amplifier in the first mode and disconnect the first reference cell from the first node of the current sense amplifier in the second mode; a third switch configured to disconnect the first reference column from the second node of the current sense amplifier in the first mode and couple the first reference column to the second node of the current sense amplifier in the second mode; and a fourth switch configured to couple the second reference column to the second node of the current sense amplifier in both the first mode and the second mode.
 15. The circuit according to claim 14, wherein the first switch comprises a first transistor and a second transistor coupled in parallel and both configured to be turned off in the first mode and turned on in the second mode; the second switch comprises a third transistor configured to be turned on in the first mode and turned off in the second mode; the third switch comprises a fourth transistor configured to be turned off in the first mode and turned on in the second mode; and the fourth switch comprises a fifth transistor and a sixth transistor coupled in parallel, wherein the fifth transistor is configured to be turned on in both the first mode and the second mode; and the sixth transistor is configured to be turned off in both the first mode and the second mode.
 16. The circuit according to claim 10, further comprising: a seventh switch configured to form a common node between the first reference column and the second reference column in the first mode, and to break the common node between the first reference column and the second reference column in the second mode.
 17. The circuit according to claim 10, further comprising: a plurality of dummy columns, wherein any of the array segment, the first reference column, and the second reference column is sandwiched between two of the dummy columns.
 18. A method comprising: selectively coupling a first reference cell or a second reference cell to a first node of a current sense amplifier in a first mode; selectively coupling the second reference cell or the first reference cell to a second node of the current sense amplifier in the first mode; generating differential voltage outputs based on currents through the first and second nodes of the current sense amplifier in the first mode; selectively coupling a cell of a cell segment to the first node of the current sense amplifier in a second mode; selectively coupling first and second reference cells to the second node of the current sense amplifier in the second mode; and generating differential voltage outputs based on currents through the first and second nodes of the current sense amplifier in the second mode.
 19. The method according to claim 18, wherein the selectively coupling the first reference cell or the second reference cell to the current sense amplifier in the first mode comprises: turning on a first switch coupled between the first node and the first reference cell or the second reference cell in response to a first state of a mode signal; and turning off a second switch coupled between the first node and the cell of the cell segment in response to the first state of the mode signal.
 20. The method according to claim 18, wherein the generating the differential voltage outputs based on currents through the first and second nodes of the current sense amplifier in the first mode or the second comprises: charging the first node and the second of the current sense amplifier; and enabling sensing currents through the first and second nodes of the current sense amplifier to generate the differential voltage outputs. 